class Cryscord::Command
- Cryscord::Command
- Reference
- Object
Defined in:
command.crConstant Summary
-
CHAT_INPUT_REGEX =
/^[-_\p{L}\p{N}\p{Devanagari}\p{Thai}]{1,32}$/
Constructors
Instance Method Summary
- #application_id : Snowflake
- #application_id=(application_id : Snowflake)
- #application_id? : Snowflake | Nil
- #default_member_permissions=(default_member_permissions : Permission)
- #default_member_permissions? : Permission
- #default_permission=(default_permission : Bool)
- #default_permission? : Bool
- #description : String
- #description=(description : String)
- #description? : String | Nil
- #description_localizations=(description_localizations : LocaleDict)
- #description_localizations? : LocaleDict
- #dm_permission=(dm_permission : Bool)
- #dm_permission? : Bool
- #guild_id=(guild_id : Snowflake)
- #guild_id? : Snowflake
- #id : Snowflake
- #id=(id : Snowflake)
- #id? : Snowflake | Nil
- #name : String
- #name=(name : String)
- #name? : String | Nil
- #name_localizations=(name_localizations : LocaleDict)
- #name_localizations? : LocaleDict
- #nsfw=(nsfw : Bool)
- #nsfw? : Bool
- #options=(options : Options)
- #options? : Options
- #type=(type : Command::Type)
- #type? : Command::Type
- #version : Snowflake
- #version=(version : Snowflake)
- #version? : Snowflake | Nil
Constructor Detail
def self.new(id : Nil | Cryscord::Snowflake, application_id : Nil | Cryscord::Snowflake, name : Nil | String, version : Nil | Cryscord::Snowflake, type : Cryscord::Command::Type = Type::CHAT_INPUT, guild_id : Cryscord::Snowflake = nil, name_localizations : Hash(String, String) = LocaleDict.new, description : Nil | String = "", description_localizations : Hash(String, String) = LocaleDict.new, options : Array(Cryscord::CommandOption) = Options.new, default_member_permissions : Cryscord::Permission = "", dm_permission : Bool = true, default_permission : Bool = nil, nsfw : Bool = false)
#