SetPermissionsRequest constructor
SetPermissionsRequest({
- Int64? guildId,
- Int64? channelId,
- Int64? roleId,
- Iterable<
Permission> ? permsToGive,
Implementation
factory SetPermissionsRequest({
$fixnum.Int64? guildId,
$fixnum.Int64? channelId,
$fixnum.Int64? roleId,
$core.Iterable<Permission>? permsToGive,
}) {
final _result = create();
if (guildId != null) {
_result.guildId = guildId;
}
if (channelId != null) {
_result.channelId = channelId;
}
if (roleId != null) {
_result.roleId = roleId;
}
if (permsToGive != null) {
_result.permsToGive.addAll(permsToGive);
}
return _result;
}