Skip to content

serialized_source_guild in Guild Template returns the incorrect type for the system_channel_id field #6609

@kagadar

Description

@kagadar

Description

Using https://discord.com/developers/docs/resources/guild-template#get-guild-template the guild template object, https://discord.com/developers/docs/resources/guild-template#guild-template-resource, has a field serialized_source_guild, which is a guild object: https://discord.com/developers/docs/resources/guild#guild-object

This object has a field system_channel_id of type snowflake

According to https://discord.com/developers/docs/reference#snowflakes, the API should return these as a string, however the value returned by the API is a number.

Steps to Reproduce

New template that exhibits this behaviour: https://discord.com/api/v9/guilds/templates/5TA7DUe7aAEy

Expected Behavior

The system_channel_id should be a string.

Current Behavior

The system_channel_id is a number.

Screenshots/Videos

No response

Client and System Information

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsyncedSynced to internal tracker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions