(guild_id: Id<GuildMarker>, name: String)
| 347 | } |
| 348 | |
| 349 | fn make_unknown_group(guild_id: Id<GuildMarker>, name: String) -> TwilightCommand { |
| 350 | TwilightCommand { |
| 351 | application_id: None, |
| 352 | description: GROUP_DESC_PLACEHOLDER.to_string(), |
| 353 | guild_id: Some(guild_id), |
| 354 | id: None, |
| 355 | kind: TwilightCommandType::ChatInput, |
| 356 | options: Vec::new(), |
| 357 | name, |
| 358 | version: Id::new(1), |
| 359 | default_member_permissions: None, |
| 360 | dm_permission: None, |
| 361 | description_localizations: Default::default(), |
| 362 | name_localizations: Default::default(), |
| 363 | nsfw: None, |
| 364 | contexts: None, |
| 365 | integration_types: None, |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | pub fn group_to_twilight_command( |
| 370 | guild_id: Id<GuildMarker>, |
no outgoing calls
no test coverage detected