Skip to content

Commit cfd55f8

Browse files
committed
add default snowflake typeconverters to interaction service
1 parent c3df495 commit cfd55f8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Discord.Net.Interactions/InteractionService.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,12 @@ private InteractionService(Func<DiscordRestClient> getRestClient, InteractionSer
236236
[typeof(IConvertible)] = typeof(DefaultValueModalComponentConverter<>),
237237
[typeof(Enum)] = typeof(EnumModalComponentConverter<>),
238238
[typeof(Nullable<>)] = typeof(NullableComponentConverter<>),
239-
[typeof(Array)] = typeof(DefaultArrayModalComponentConverter<>)
239+
[typeof(Array)] = typeof(DefaultArrayModalComponentConverter<>),
240+
[typeof(IChannel)] = typeof(DefaultChannelModalComponentConverter<>),
241+
[typeof(IUser)] = typeof(DefaultUserModalComponentConverter<>),
242+
[typeof(IRole)] = typeof(DefaultRoleModalComponentConverter<>),
243+
[typeof(IMentionable)] = typeof(DefaultMentionableModalComponentConverter<>),
244+
[typeof(IAttachment)] = typeof(DefaultAttachmentModalComponentConverter<>)
240245
});
241246
}
242247

0 commit comments

Comments
 (0)