Method CreateGuildFromTemplateAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
CreateGuildFromTemplateAsync(string, string, string)
Creates a guild from a template. This requires the bot to be in less than 10 guilds total.
public Task<DiscordGuild> CreateGuildFromTemplateAsync(string code, string name, string icon)
Parameters
code
stringThe template code.
name
stringName of the guild.
icon
stringStream containing the icon for the guild.
Returns
- Task<DiscordGuild>
The created guild.