Search Results for

    Show / Hide Table of Contents

    Class EmoteProperties

    Provides properties that are used to modify an Emote with the specified changes.

    Inheritance
    Object
    EmoteProperties
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public class EmoteProperties : object
    Examples

    The following example uses ModifyEmoteAsync to apply changes specified in the properties,

    await guild.ModifyEmoteAsync(x =>
    {
        x.Name = "blobo";
    });
    

    Properties

    | Improve this Doc View Source

    Name

    Gets or sets the name of the Emote.

    Declaration
    public Optional<string> Name { get; set; }
    Property Value
    Type Description
    Optional<String>
    | Improve this Doc View Source

    Roles

    Gets or sets the roles that can access this Emote.

    Declaration
    public Optional<IEnumerable<IRole>> Roles { get; set; }
    Property Value
    Type Description
    Optional<IEnumerable<IRole>>

    See Also

    ModifyEmoteAsync(GuildEmote, Action<EmoteProperties>, RequestOptions)

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2