published on Monday, May 18, 2026 by lucky3028
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.
- Server
Id string - ID of the guild to create the sticker in.
- string
- Autocomplete/suggestion tags for the sticker (max 200 characters).
- Description string
- Description of the sticker (empty or 2-100 characters).
- Guild
Sticker stringId - 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.
- string
- Autocomplete/suggestion tags for the sticker (max 200 characters).
- Description string
- Description of the sticker (empty or 2-100 characters).
- Guild
Sticker stringId - 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.
- string
- Autocomplete/suggestion tags for the sticker (max 200 characters).
- description string
- Description of the sticker (empty or 2-100 characters).
- guild_
sticker_ stringid - 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.
- String
- Autocomplete/suggestion tags for the sticker (max 200 characters).
- description String
- Description of the sticker (empty or 2-100 characters).
- guild
Sticker StringId - 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.
- string
- Autocomplete/suggestion tags for the sticker (max 200 characters).
- description string
- Description of the sticker (empty or 2-100 characters).
- guild
Sticker stringId - 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.
- str
- Autocomplete/suggestion tags for the sticker (max 200 characters).
- description str
- Description of the sticker (empty or 2-100 characters).
- guild_
sticker_ strid - 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.
- server
Id String - ID of the guild to create the sticker in.
- String
- Autocomplete/suggestion tags for the sticker (max 200 characters).
- description String
- Description of the sticker (empty or 2-100 characters).
- guild
Sticker StringId - 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:
- Format
Type 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.
- Format
Type 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.
- format
Type 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.
- 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.
- 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.
- 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.
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) -> GuildStickerfunc 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.
- 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 double - Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
- Guild
Sticker stringId - 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.
- 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 float64 - Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
- Guild
Sticker stringId - 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.
- 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_ stringid - 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.
- 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 Double - Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
- guild
Sticker StringId - 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.
- 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 stringId - 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.
- 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_ strid - 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.
- 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.
- format
Type Number - Format type of the sticker (1=PNG, 2=APNG, 3=Lottie, 4=GIF).
- guild
Sticker StringId - 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.
- 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
discordTerraform Provider.
published on Monday, May 18, 2026 by lucky3028
