1. Packages
  2. Packages
  3. Discord Provider
  4. API Docs
  5. GuildSticker
Viewing docs for discord 2.7.0
published on Monday, May 18, 2026 by lucky3028
Viewing docs for discord 2.7.0
published on Monday, May 18, 2026 by lucky3028

    A resource to manage a guild sticker.

    Create GuildSticker Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GuildSticker(name: string, args: GuildStickerArgs, opts?: CustomResourceOptions);
    @overload
    def GuildSticker(resource_name: str,
                     args: GuildStickerArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def GuildSticker(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     file: Optional[str] = None,
                     server_id: Optional[str] = None,
                     tags: Optional[str] = None,
                     description: Optional[str] = None,
                     guild_sticker_id: Optional[str] = None,
                     name: Optional[str] = None)
    func NewGuildSticker(ctx *Context, name string, args GuildStickerArgs, opts ...ResourceOption) (*GuildSticker, error)
    public GuildSticker(string name, GuildStickerArgs args, CustomResourceOptions? opts = null)
    public GuildSticker(String name, GuildStickerArgs args)
    public GuildSticker(String name, GuildStickerArgs args, CustomResourceOptions options)
    
    type: discord:GuildSticker
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "discord_guildsticker" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args GuildStickerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GuildStickerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GuildStickerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GuildStickerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GuildStickerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var guildStickerResource = new Discord.GuildSticker("guildStickerResource", new()
    {
        File = "string",
        ServerId = "string",
        Tags = "string",
        Description = "string",
        GuildStickerId = "string",
        Name = "string",
    });
    
    example, err := discord.NewGuildSticker(ctx, "guildStickerResource", &discord.GuildStickerArgs{
    	File:           pulumi.String("string"),
    	ServerId:       pulumi.String("string"),
    	Tags:           pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	GuildStickerId: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    })
    
    resource "discord_guildsticker" "guildStickerResource" {
      file             = "string"
      server_id        = "string"
      tags             = "string"
      description      = "string"
      guild_sticker_id = "string"
      name             = "string"
    }
    
    var guildStickerResource = new GuildSticker("guildStickerResource", GuildStickerArgs.builder()
        .file("string")
        .serverId("string")
        .tags("string")
        .description("string")
        .guildStickerId("string")
        .name("string")
        .build());
    
    guild_sticker_resource = discord.GuildSticker("guildStickerResource",
        file="string",
        server_id="string",
        tags="string",
        description="string",
        guild_sticker_id="string",
        name="string")
    
    const guildStickerResource = new discord.GuildSticker("guildStickerResource", {
        file: "string",
        serverId: "string",
        tags: "string",
        description: "string",
        guildStickerId: "string",
        name: "string",
    });
    
    type: discord:GuildSticker
    properties:
        description: string
        file: string
        guildStickerId: string
        name: string
        serverId: string
        tags: string
    

    GuildSticker Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The GuildSticker resource accepts the following input properties:

    File string
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    ServerId string
    ID of the guild to create the sticker in.
    Tags string
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    Description string
    Description of the sticker (empty or 2-100 characters).
    GuildStickerId string
    The ID of this resource.
    Name string
    Name of the sticker (2-30 characters).
    File string
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    ServerId string
    ID of the guild to create the sticker in.
    Tags string
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    Description string
    Description of the sticker (empty or 2-100 characters).
    GuildStickerId string
    The ID of this resource.
    Name string
    Name of the sticker (2-30 characters).
    file string
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    server_id string
    ID of the guild to create the sticker in.
    tags string
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description string
    Description of the sticker (empty or 2-100 characters).
    guild_sticker_id string
    The ID of this resource.
    name string
    Name of the sticker (2-30 characters).
    file String
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    serverId String
    ID of the guild to create the sticker in.
    tags String
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description String
    Description of the sticker (empty or 2-100 characters).
    guildStickerId String
    The ID of this resource.
    name String
    Name of the sticker (2-30 characters).
    file string
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    serverId string
    ID of the guild to create the sticker in.
    tags string
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description string
    Description of the sticker (empty or 2-100 characters).
    guildStickerId string
    The ID of this resource.
    name string
    Name of the sticker (2-30 characters).
    file str
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    server_id str
    ID of the guild to create the sticker in.
    tags str
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description str
    Description of the sticker (empty or 2-100 characters).
    guild_sticker_id str
    The ID of this resource.
    name str
    Name of the sticker (2-30 characters).
    file String
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    serverId String
    ID of the guild to create the sticker in.
    tags String
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description String
    Description of the sticker (empty or 2-100 characters).
    guildStickerId String
    The ID of this resource.
    name String
    Name of the sticker (2-30 characters).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GuildSticker resource produces the following output properties:

    FormatType double
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    Id string
    The provider-assigned unique ID for this managed resource.
    FormatType float64
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    Id string
    The provider-assigned unique ID for this managed resource.
    format_type number
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    id string
    The provider-assigned unique ID for this managed resource.
    formatType Double
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    id String
    The provider-assigned unique ID for this managed resource.
    formatType number
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    id string
    The provider-assigned unique ID for this managed resource.
    format_type float
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    id str
    The provider-assigned unique ID for this managed resource.
    formatType Number
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GuildSticker Resource

    Get an existing GuildSticker resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GuildStickerState, opts?: CustomResourceOptions): GuildSticker
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            file: Optional[str] = None,
            format_type: Optional[float] = None,
            guild_sticker_id: Optional[str] = None,
            name: Optional[str] = None,
            server_id: Optional[str] = None,
            tags: Optional[str] = None) -> GuildSticker
    func GetGuildSticker(ctx *Context, name string, id IDInput, state *GuildStickerState, opts ...ResourceOption) (*GuildSticker, error)
    public static GuildSticker Get(string name, Input<string> id, GuildStickerState? state, CustomResourceOptions? opts = null)
    public static GuildSticker get(String name, Output<String> id, GuildStickerState state, CustomResourceOptions options)
    resources:  _:    type: discord:GuildSticker    get:      id: ${id}
    import {
      to = discord_guildsticker.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    Description of the sticker (empty or 2-100 characters).
    File string
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    FormatType double
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    GuildStickerId string
    The ID of this resource.
    Name string
    Name of the sticker (2-30 characters).
    ServerId string
    ID of the guild to create the sticker in.
    Tags string
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    Description string
    Description of the sticker (empty or 2-100 characters).
    File string
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    FormatType float64
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    GuildStickerId string
    The ID of this resource.
    Name string
    Name of the sticker (2-30 characters).
    ServerId string
    ID of the guild to create the sticker in.
    Tags string
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description string
    Description of the sticker (empty or 2-100 characters).
    file string
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    format_type number
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    guild_sticker_id string
    The ID of this resource.
    name string
    Name of the sticker (2-30 characters).
    server_id string
    ID of the guild to create the sticker in.
    tags string
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description String
    Description of the sticker (empty or 2-100 characters).
    file String
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    formatType Double
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    guildStickerId String
    The ID of this resource.
    name String
    Name of the sticker (2-30 characters).
    serverId String
    ID of the guild to create the sticker in.
    tags String
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description string
    Description of the sticker (empty or 2-100 characters).
    file string
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    formatType number
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    guildStickerId string
    The ID of this resource.
    name string
    Name of the sticker (2-30 characters).
    serverId string
    ID of the guild to create the sticker in.
    tags string
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description str
    Description of the sticker (empty or 2-100 characters).
    file str
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    format_type float
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    guild_sticker_id str
    The ID of this resource.
    name str
    Name of the sticker (2-30 characters).
    server_id str
    ID of the guild to create the sticker in.
    tags str
    Autocomplete/suggestion tags for the sticker (max 200 characters).
    description String
    Description of the sticker (empty or 2-100 characters).
    file String
    Path to the sticker file. Must be PNG, APNG, GIF, or Lottie JSON. Max 512 KB.
    formatType Number
    Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
    guildStickerId String
    The ID of this resource.
    name String
    Name of the sticker (2-30 characters).
    serverId String
    ID of the guild to create the sticker in.
    tags String
    Autocomplete/suggestion tags for the sticker (max 200 characters).

    Package Details

    Repository
    discord lucky3028/terraform-provider-discord
    License
    Notes
    This Pulumi package is based on the discord Terraform Provider.
    Viewing docs for discord 2.7.0
    published on Monday, May 18, 2026 by lucky3028
      Try Pulumi Cloud free. Your team will thank you.