Table of Contents

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 string

The template code.

name string

Name of the guild.

icon string

Stream containing the icon for the guild.

Returns

Task<DiscordGuild>

The created guild.